/**
 * @author gao
 * @date 2025/7/9 8:21
 */

public class Demo4 {
    public static void main(String[] args) throws InterruptedException {
        Object o = new Object();
        System.out.println("wait之前");
        synchronized (o) {
            o.wait();
        }
        System.out.println("wait之后");
    }
}